﻿@model IEnumerable<Icoders.MarketTracker.Core.MasterData.User>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<div class="button-link">
    @Html.ActionLink("Create New", "Create")
</div>
<table id="data-grid">
    <tr>
        <th></th>
        <th>
            Username
        </th>
        <th>
            FirstName
        </th>
        <th>
            LastName
        </th>
        
        <th>
            Email
        </th>
        
        
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            
        </td>
        <td>
            @item.Username
        </td>
        <td>
            @item.FirstName
        </td>
        <td>
            @item.LastName
        </td>
       
        <td>
            @item.Email
        </td>
        
    </tr>
}

</table>

